package com.woniu.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author D
 * @since 2023-03-27 08:40:33
 */
@Getter
@Setter
@TableName("t_test_outside")
@AllArgsConstructor
@NoArgsConstructor
public class TestOutside {

    /**
     * 靶场code
     */
    @TableId("test_code")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long testCode;

    /**
     * 靶场名字
     */
    @TableField("test_name")
    private String testName;

    /**
     * 靶场主图url
     */
    @TableField("test_picture_url")
    private String testPictureUrl;

    /**
     * 难度得分
     */
    @TableField("difficulty_score")
    private Integer difficultyScore;

    /**
     * 访问人数
     */
    @TableField("visitors")
    private Integer visitors;

    /**
     * 本周热度
     */
    @TableField("heat_range")
    private Integer heatRange;

    /**
     * 更新时间
     */
    @TableField("test_update_time")
    private Date testUpdateTime;

    /**
     * 创建时间
     */
    @TableField("test_create_time")
    private Date testCreateTime;

    /**
     * 使用次数
     */
    @TableField("userd_numbers")
    private Integer userdNumbers;

    /**
     * 总收藏次数
     */
    @TableField("collection_count")
    private Integer collectionCount;


}
